package com.young.rpc.http;

import com.young.context.LifeCycle;

import java.util.concurrent.Future;

/**
 * @description：ScheduleHttpClient
 * @author: yangyahui01
 * @date: 11/25/24 4:49 PM
 */
public interface ScheduleHttpClient extends LifeCycle {

    /**
     * 事件发送,同步
     *
     * @param record
     * @return
     */
    boolean send(RequestBody record);

    /**
     * 异步发送
     *
     * @param record
     * @return
     */
    Future<Boolean> asyncSend(RequestBody record);



}
